package com.example.shixun.dao;

import com.example.shixun.pojo.CourseComent;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseComentDao {
    public Integer saveCourseComent(CourseComent courseComent);
    public Integer deleteByUserId(Integer userId);
    public Integer deleteByCourseId(Integer courseId);
    public List<CourseComent> selectByUserId(Integer userId);
    public List<CourseComent> selectByCourseId(Integer courseId);
    public List<CourseComent> selectAll();
    public Integer updateCourseComent(Integer userId,Integer courseId);
}
